import http from '@/utils/http'
import type { LoginForm, UserModel } from './type'

// 统一管理项目用户相关的接口
// 暴漏请求接口
export class UserApi {
  static login = async (data: LoginForm) => await http.post<string>('/admin/acl/index/login', data)
  static getUser = async () => await http.get<UserModel>('/admin/acl/index/info')
}
